/**
 * Created by Administrator on 2016/4/28.
 */
(function () {
    var app = angular.module("form1_add",[]);

    // 自定义标签：表单
    app.directive("addCard", function () {
        return {
            restrict: 'E',
            templateUrl: 'add-card.html',
            controller: function ($scope) {
                this.card = {};
                this.addCard = function(cw) {
                    $scope.cards.push(this.card);
                    this.card = {};
                }
            },
            controllerAs: 'fc'
        };
    });
})();